﻿namespace _3_NovaAdmin.Domain.Aggregates;

[SugarTable("ChatMessage")]
public class ChatMessage : Entity<Guid>, IAggregateRoot
{
    public ChatMessage() { }


    [SugarColumn(ColumnName = "SenderId")]
    public string SenderId { get; set; }

    [SugarColumn(ColumnName = "ReceiverId")]
    public string ReceiverId { get; set; }

    [SugarColumn(ColumnName = "GroupId")]
    public string GroupId { get; set; }

    [SugarColumn(ColumnName = "Content")]
    public string Content { get; set; }

    [SugarColumn(ColumnName = "IsRead")]
    public bool IsRead { get; set; }







    [SugarColumn(ColumnName = "type")]
    public int? type { get; set; }
}